.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  background-color: var(--bg-body);
  box-shadow: 0 2px 5px 0 var(--shadow-navbar);
}

.navbarContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin: 0 auto;
}

.logo {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;

  &:hover {
    opacity: 0.9;
  }
}

.logoImage {
  width: auto;
  height: 2rem;
}

.logoText {
  @media (width <= 768px) {
    display: none;
  }
}

.logoMobileText {
  @media (width > 768px) {
    display: none;
  }
}

.navLinks {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.navLink {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;

  &:hover {
    color: var(--primary-color);
    background-color: var(--bg-color);
  }

  @media (width <= 576px) {
    span {
      display: none;
    }

    padding: 0.5rem;
  }
}

.githubLink {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-primary);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.githubIcon {
  width: 2rem;
  height: 2rem;
  border: 1px solid white;
  border-radius: 50%;
}

.themeToggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 50%;
  transition: all 0.2s ease;

  &:hover {
    background-color: var(--bg-color);
    transform: rotate(15deg);
  }
}

.themeIcon {
  font-size: 1.1rem;
}

@media (width <= 768px) {
  .navbar {
    padding: 0.5rem 0;
  }

  .navLinks {
    gap: 0.5rem;
  }
}
